package com.zenith.storage.po.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.zenith.common.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 分片上传明细实体类
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sto_upload_chunk")
@Schema(name = "分片上传明细实体类",description = "分片上传明细实体类")
public class StorageUploadChunk extends BaseEntity {
    /**
     * 会话ID
     */
    @TableField("session_id")
    @Schema(description = "会话ID")
    private Long sessionId;

    /**
     * 分片序号
     */
    @Schema(description = "分片序号")
    private Integer chunkNo;

    /**
     * 分片ETag
     */
    @Schema(description = "分片ETag")
    private String etag;

    /**
     * 0-待上传 1-成功 2-失败
     */
    @Schema(description = "0-待上传 1-成功 2-失败")
    private Integer status;
}